package com.qst.survey.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

import java.util.Date;


/**
 * @Date: 2021/3/19 19:57
 * @Description: 用户实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;  //用户名

    private String name;  //昵称

    private String password; //密码

    private Integer sex; //性别

    private Integer age;//年龄

    private String email; //邮箱

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;  //修改时间

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;  //创建时间

    @TableLogic
    private Integer deleted;  //逻辑删除


}
